<template>
    <footer>
        <div class="container">
            <img alt="" src="#" />
        </div>

        <div class="container text-center">
            <p>
                Copyright © {{ projectCreateYear }} {{ projectName }}. All rights reserved.
            </p>

            <a href="#">{{ projectDomain }}</a>
        </div>
    </footer>
</template>

<script>
    export default {
        name: "PageFooter",
        props: {
            projectCreateYear: {
                type: Number,
                default: function () {
                    let date = new Date()
                    return date.getFullYear()
                }
            },
            projectName: {
                type: String,
                default: '项目名称'
            },
            projectDomain: {
                type: String,
                default: 'project-name.com'
            }
        }
    }
</script>

<style scoped>
    footer{
        background-color: #1c1c1c;
        bottom: 0;
        color: #999999;
    }
    footer p{
        margin-bottom: 5px;
    }
    footer a{
        color: #999999;
        transition: 0.3s;
        text-decoration: none;
    }
    footer a:hover{
        color: #acacac;
    }
</style>
